﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EF.Configers
{
    public class StudentConfigers : EntityTypeConfiguration<Student>
    {
        public StudentConfigers(){
            this.ToTable(nameof(Student));
            this.Property(e => e.Name).HasMaxLength(20);
            this.Property(e => e.Set).HasMaxLength(2).IsRequired();
        }
    }

}
